<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
	<td class="block_header">{language text="invite_your_friends"}</td>
</tr>
</table>

<div style="font-size:9pt;">
<br />
<div style="padding-left:10px;">

{if !$aSended}
    <div>{language text="below_you_can_email_your_friends_to"}</div>
    <br />

    {if count($aMembers)}
    {language text='Mod_Account.user_already_members'}:
    <ul>
    {foreach from=$aMembers item=aMember}
	     <li>{$aMember}</li>    
    {/foreach}
    </ul>
    {/if}
    
    {if count($aInvites)}
    {language text='Mod_Account.user_already_invited'}:
    <ul>
    {foreach from=$aInvites item=aInvite}
	     <li>{$aInvite}</li>    
    {/foreach}
    </ul>
    {/if}    
    
    {messages}
    {$jsValMess}
    <form method="post" action="{$sUrl}" onsubmit="{$jsValidation}">
    <input type="hidden" name="title" value="ok" />
    <table style="width:100%;" cellspacing="2" cellpadding="4">
    {section name=mail start=1 loop=$iNumEmails+1}
    <tr>
        <td style="text-align:right;" class="color">{str_replace text="`friends_email_smarty_section_mail_i`" smarty_section_mail_index="`$smarty.section.mail.index`" }:</td>
        <td class="border13">
            <input type="text" name="aInvite{$smarty.section.mail.index}" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" />
        </td>
    </tr>
    {/section}
    <tr>
        <td style="text-align:right;" class="color" valign="top">{language text="your_message"} ( {language text="optional"} ):</td>
        <td class="border13">
            <textarea cols="40" rows="7" name="text"></textarea>
        </td>
    </tr>
    <tr>
        <td></td>
        <td><br/><input type="submit" name='act[send_invite]' value="      {language text="send"}      "  class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></td>
    </tr>
    </table>
    </form>
{else}

    <div style="font-size:9pt;">
        
        {language text="thank_you_for_taking_your_time_to_i"} 
        <br /> {language text="an_email_has_been_sent_out_to_the_f"}
    
        <br /><br />
        <div style="padding-left:10px;font-size:10pt;">
            <ul>
            {foreach from=$aSended item=sEmail}
                <li>{$sEmail}</li>    
            {/foreach}
            </ul>   
            
		    {if count($aMembers)}
		    {language text='Mod_Account.user_already_members'}:
		    <ul>
		    {foreach from=$aMembers item=aMember}
		    	 <li>{$aMember}</li>    
    		{/foreach}
    		</ul>
		    {/if}
    
		    {if count($aInvites)}
    		{language text='Mod_Account.user_already_invited'}:
    		<ul>
		    {foreach from=$aInvites item=aInvite}
			     <li>{$aInvite}</li>    
    		{/foreach}
		    </ul>
    		{/if}               
            
        </div>
    
        <br />
        <a href="{url link='public.account.invite'}">{language text="click_here_to_send_more"}</a>
        <br /><br />
    </div>
{/if}

</div>